package com.totoro.mybatis.sharding.dao;

import com.totoro.mybatis.sharding.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * Created by Niki on 2018/8/23 18:14
 */
@Mapper
public interface UserDao {
    @Select("select * from user where id = #{id}")
    User queryById(@Param("id") int id);
}
